package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type VideoDataAudioRouter struct {}

// InitVideoDataAudioRouter 初始化 videoDataAudio表 路由信息
func (s *VideoDataAudioRouter) InitVideoDataAudioRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	videoDataAudioRouter := Router.Group("videoDataAudio").Use(middleware.OperationRecord())
	videoDataAudioRouterWithoutRecord := Router.Group("videoDataAudio")
	videoDataAudioRouterWithoutAuth := PublicRouter.Group("videoDataAudio")
	{
		videoDataAudioRouter.POST("createVideoDataAudio", videoDataAudioApi.CreateVideoDataAudio)   // 新建videoDataAudio表
		videoDataAudioRouter.DELETE("deleteVideoDataAudio", videoDataAudioApi.DeleteVideoDataAudio) // 删除videoDataAudio表
		videoDataAudioRouter.DELETE("deleteVideoDataAudioByIds", videoDataAudioApi.DeleteVideoDataAudioByIds) // 批量删除videoDataAudio表
		videoDataAudioRouter.PUT("updateVideoDataAudio", videoDataAudioApi.UpdateVideoDataAudio)    // 更新videoDataAudio表
	}
	{
		videoDataAudioRouterWithoutRecord.GET("findVideoDataAudio", videoDataAudioApi.FindVideoDataAudio)        // 根据ID获取videoDataAudio表
		videoDataAudioRouterWithoutRecord.GET("getVideoDataAudioList", videoDataAudioApi.GetVideoDataAudioList)  // 获取videoDataAudio表列表
	}
	{
	    videoDataAudioRouterWithoutAuth.GET("getVideoDataAudioPublic", videoDataAudioApi.GetVideoDataAudioPublic)  // videoDataAudio表开放接口
	}
}
